package com.d.ding;

import com.d.business.domain.dto.DingProcessConfDTO;
import com.d.ydfactory.domain.ApproveStartResult;
import org.springframework.stereotype.Service;

/**
 * 审批工厂类
 */
@Service
public interface DingApproveService {
    /**
     * 发起审批
     * @param bussId  业务id
     * @return
     */
    ApproveStartResult start(Integer bussId, DingProcessConfDTO conf);

    /**
     *修改业务中的数据状态
     * @processType businessNo 对应的流程定义
     * @param businessNo 单号
     * @param status   状态
     * @param  adminId 根据业务是否保留
     * @param  adminName 根据业务是否保留
     * @return
     */
    int updateStatus(Integer type,String businessNo, Integer status, Integer adminId,String adminName,DingProcessConfDTO conf) throws Exception;
}
